#include <iostream>
using namespace std;

class A
{
    int a;
    public:
        A(int k)
        { a = k; }
        ~A()
        {}
};

class B:public A
{
    int b;
    public:
        B(int x, int y):A(x)    // derived class const. calls first the parent const. then executes itself
        {
            b = y;
        }
        ~B()      // derived class dest. runs itself then calls parent's dest.
        {}
};

int main()
{
    B obj(5, 7);
}